package com.macaline.mapper;

import com.macaline.mybatis.MybatisRedisCache;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

@CacheNamespace(implementation = MybatisRedisCache.class)
public interface TestMapper {

    @Insert("INSERT INTO test VALUES (#{id})")
    public int insert(int id);


    @Select("SELECT id FROM test WHERE id = #{id}")
    public int select(int id);
}
